package com.csylh.exception;


import com.csylh.enums.ResultEnum;

/**
 * Created by by WuLei
 * Date 2018/3/7  22:20
 */
public class OrderException extends RuntimeException{

    private int code;

    public OrderException(ResultEnum resultEnum, String msg){
        super(msg);
        this.code = resultEnum.getCode();
    }

    public OrderException(ResultEnum resultEnum){
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }
}
